
package webservices.bizHangYi;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for IO_ContactPersonType.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p>
 * <pre>
 * &lt;simpleType name="IO_ContactPersonType">
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     &lt;enumeration value="Customer"/>
 *     &lt;enumeration value="Distributor"/>
 *     &lt;enumeration value="Insurancer"/>
 *     &lt;enumeration value="Protecter"/>
 *     &lt;enumeration value="Benefiter"/>
 *     &lt;enumeration value="All"/>
 *   &lt;/restriction>
 * &lt;/simpleType>
 * </pre>
 * 
 */
@XmlType(name = "IO_ContactPersonType")
@XmlEnum
public enum IOContactPersonType {

    @XmlEnumValue("Customer")
    CUSTOMER("Customer"),
    @XmlEnumValue("Distributor")
    DISTRIBUTOR("Distributor"),
    @XmlEnumValue("Insurancer")
    INSURANCER("Insurancer"),
    @XmlEnumValue("Protecter")
    PROTECTER("Protecter"),
    @XmlEnumValue("Benefiter")
    BENEFITER("Benefiter"),
    @XmlEnumValue("All")
    ALL("All");
    private final String value;

    IOContactPersonType(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static IOContactPersonType fromValue(String v) {
        for (IOContactPersonType c: IOContactPersonType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
